package com.erp.erp_entitys.ProductFjGe;

import java.io.Serializable;

/**
 * @author 
 * 产品部件-规格型号
备注：产品规格配件表
 */
public class ProductFjGeEntity implements Serializable {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 产品编码
     */
    private String productCode;

    /**
     * 规格编码
     */
    private String fjCode;

    /**
     * 成品比例
     */
    private String cpbl;

    /**
     * 配件比例
     */
    private String pjbl;

    /**
     * 中文名称
     */
    private String chinaname;

    /**
     * 英文名称
     */
    private String englishname;

    /**
     * 毛重
     */
    private String mz;

    /**
     * 净重
     */
    private String jz;

    /**
     * 体积
     */
    private String tj;

    /**
     * 所属规格编码
     */
    private String zhuge;

    /**
     * 所属主产品编号
     */
    private String mainProductCode;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getFjCode() {
        return fjCode;
    }

    public void setFjCode(String fjCode) {
        this.fjCode = fjCode;
    }

    public String getCpbl() {
        return cpbl;
    }

    public void setCpbl(String cpbl) {
        this.cpbl = cpbl;
    }

    public String getPjbl() {
        return pjbl;
    }

    public void setPjbl(String pjbl) {
        this.pjbl = pjbl;
    }

    public String getChinaname() {
        return chinaname;
    }

    public void setChinaname(String chinaname) {
        this.chinaname = chinaname;
    }

    public String getEnglishname() {
        return englishname;
    }

    public void setEnglishname(String englishname) {
        this.englishname = englishname;
    }

    public String getMz() {
        return mz;
    }

    public void setMz(String mz) {
        this.mz = mz;
    }

    public String getJz() {
        return jz;
    }

    public void setJz(String jz) {
        this.jz = jz;
    }

    public String getTj() {
        return tj;
    }

    public void setTj(String tj) {
        this.tj = tj;
    }

    public String getZhuge() {
        return zhuge;
    }

    public void setZhuge(String zhuge) {
        this.zhuge = zhuge;
    }

    public String getMainProductCode() {
        return mainProductCode;
    }

    public void setMainProductCode(String mainProductCode) {
        this.mainProductCode = mainProductCode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductFjGeEntity other = (ProductFjGeEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProductCode() == null ? other.getProductCode() == null : this.getProductCode().equals(other.getProductCode()))
            && (this.getFjCode() == null ? other.getFjCode() == null : this.getFjCode().equals(other.getFjCode()))
            && (this.getCpbl() == null ? other.getCpbl() == null : this.getCpbl().equals(other.getCpbl()))
            && (this.getPjbl() == null ? other.getPjbl() == null : this.getPjbl().equals(other.getPjbl()))
            && (this.getChinaname() == null ? other.getChinaname() == null : this.getChinaname().equals(other.getChinaname()))
            && (this.getEnglishname() == null ? other.getEnglishname() == null : this.getEnglishname().equals(other.getEnglishname()))
            && (this.getMz() == null ? other.getMz() == null : this.getMz().equals(other.getMz()))
            && (this.getJz() == null ? other.getJz() == null : this.getJz().equals(other.getJz()))
            && (this.getTj() == null ? other.getTj() == null : this.getTj().equals(other.getTj()))
            && (this.getZhuge() == null ? other.getZhuge() == null : this.getZhuge().equals(other.getZhuge()))
                && (this.getMainProductCode() == null ? other.getMainProductCode() == null : this.getMainProductCode().equals(other.getMainProductCode()));

    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProductCode() == null) ? 0 : getProductCode().hashCode());
        result = prime * result + ((getFjCode() == null) ? 0 : getFjCode().hashCode());
        result = prime * result + ((getCpbl() == null) ? 0 : getCpbl().hashCode());
        result = prime * result + ((getPjbl() == null) ? 0 : getPjbl().hashCode());
        result = prime * result + ((getChinaname() == null) ? 0 : getChinaname().hashCode());
        result = prime * result + ((getEnglishname() == null) ? 0 : getEnglishname().hashCode());
        result = prime * result + ((getMz() == null) ? 0 : getMz().hashCode());
        result = prime * result + ((getJz() == null) ? 0 : getJz().hashCode());
        result = prime * result + ((getTj() == null) ? 0 : getTj().hashCode());
        result = prime * result + ((getZhuge() == null) ? 0 : getZhuge().hashCode());
        result = prime * result + ((getMainProductCode() == null) ? 0 : getMainProductCode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", productCode=").append(productCode);
        sb.append(", fjCode=").append(fjCode);
        sb.append(", cpbl=").append(cpbl);
        sb.append(", pjbl=").append(pjbl);
        sb.append(", chinaname=").append(chinaname);
        sb.append(", englishname=").append(englishname);
        sb.append(", mz=").append(mz);
        sb.append(", jz=").append(jz);
        sb.append(", tj=").append(tj);
        sb.append(", zhuge=").append(zhuge);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}